// 共有的表格列
import { ref } from 'vue'

//资产列表
const assetsColums = ref([
  {
    key: -1,
    label: `序号`,
    visible: true,
    prop: 'pageNo',
    langKey: 'assetsColums.pageNo',
    width: '80',
  },

  {
    key: 0,
    label: `资产编码`,
    visible: true,
    prop: 'assetsCode',
    langKey: 'assetsColums.assetsCode',
    isclick: true,
    width: '120',
  },
  {
    key: 1,
    label: `资产状态`,
    visible: true,
    prop: 'enableFlag',
    langKey: 'assetsColums.enableFlag',
    width: '100',
  },
  {
    key: 2,
    label: `资产名称`,
    visible: true,
    prop: 'assetsName',
    langKey: 'assetsColums.assetsName',
    width: '150',
  },
  {
    key: 3,
    label: `规格型号`,
    visible: true,
    prop: 'specModel',
    langKey: 'assetsColums.specModel',
    width: '180',
  },
  {
    key: 4,
    label: `使用组织`,
    visible: true,
    prop: 'useOrganizationName',
    langKey: 'assetsColums.useOrganizationName',
    width: '200',
  },
  {
    key: 5,
    label: `使用人员`,
    visible: true,
    prop: 'useUserName',
    langKey: 'assetsColums.useUserName',
    width: '80',
  },
  {
    key: 6,
    label: `所属组织`,
    visible: true,
    prop: 'ownershipOrganizationalName',
    langKey: 'assetsColums.ownershipOrganizationalName',
    width: '200',
  },
  {
    key: 7,
    label: `资产分类`,
    visible: true,
    prop: 'assetsClassifyName',
    langKey: 'assetsColums.assetsClassifyName',
    width: '100',
  },
  {
    key: 8,
    label: `资产来源`,
    visible: false,
    prop: 'assetsSourceName',
    langKey: 'assetsColums.assetsSourceName',
  },
  {
    key: 9,
    label: `区域位置`,
    visible: false,
    prop: 'regionName',
    langKey: 'assetsColums.regionName',
  },
  {
    key: 10,
    label: `保管员`,
    visible: true,
    prop: 'storekeeperUserName',
    langKey: 'assetsColums.storekeeperUserName',
    width: '80',
  },
  {
    key: 11,
    label: `存放位置`,
    visible: true,
    prop: 'storageLocation',
    langKey: 'assetsColums.storageLocation',
    width: '200',
  },
  {
    key: 12,
    label: `单位`,
    visible: true,
    prop: 'unit',
    langKey: 'assetsColums.unit',
    width: '80',
  },
  {
    key: 13,
    label: `价值`,
    visible: true,
    prop: 'assetsCost',
    langKey: 'assetsColums.assetsCost',
  },
  {
    key: 14,
    label: `使用期限`,
    visible: false,
    prop: 'serviceLife',
    langKey: 'assetsColums.serviceLife',
  },
  {
    key: 15,
    label: `采购日期`,
    visible: false,
    prop: 'purchaseDate',
    langKey: 'assetsColums.purchaseDate',
    width: '150',
  },
  {
    key: 16,
    label: `供应商`,
    visible: false,
    prop: 'supplierName',
    langKey: 'assetsColums.supplierName',
  },
  {
    key: 17,
    label: `厂家`,
    visible: false,
    prop: 'manufacturerName',
    langKey: 'assetsColums.manufacturerName',
  },
  {
    key: 18,
    label: `备注`,
    visible: true,
    prop: 'remark',
    langKey: 'assetsColums.remark',
  },
  {
    key: 19,
    label: `资产ID`,
    visible: false,
    prop: 'assetsId',
    langKey: 'assetsColums.assetsId',
  },
  {
    key: 20,
    label: `创建人`,
    visible: false,
    prop: 'createUser',
    langKey: 'assetsColums.createUser',
  },
])
//领用列表
const receiveColums = ref([
  {
    key: -1,
    label: `序号`,
    visible: true,
    prop: 'pageNo',
    langKey: 'receiveColums.pageNo',
    width: '80',
  },
  {
    key: 0,
    label: `单据状态`,
    visible: true,
    prop: 'enableFlag',
    langKey: 'receiveColums.enableFlag',
    width: '100',
  },
  {
    key: 1,
    label: `领用单号`,
    visible: true,
    prop: 'receiveNo',
    langKey: 'receiveColums.receiveNo',
    isclick: true,
    width: '150',
  },
  {
    key: 2,
    label: `领用组织`,
    visible: true,
    prop: 'receiveOrganizationName',
    langKey: 'receiveColums.receiveOrganizationName',
    width: '150',
  },
  {
    key: 3,
    label: `使用人`,
    visible: true,
    prop: 'useUserName',
    langKey: 'receiveColums.useUserName',
    width: '150',
  },
  {
    key: 4,
    label: `领用日期`,
    visible: true,
    prop: 'receiveDate',
    langKey: 'receiveColums.receiveDate',
    width: '150',
  },
  {
    key: 5,
    label: `预计退还日期`,
    visible: true,
    prop: 'ScheduledReturnDate',
    langKey: 'receiveColums.ScheduledReturnDate',
    width: '150',
  },
  {
    key: 6,
    label: `备注`,
    visible: true,
    prop: 'receiveRemark',
    langKey: 'receiveColums.receiveRemark',
  },
])

//退还列表
const returnColums = ref([
  {
    key: -1,
    label: `序号`,
    visible: true,
    prop: 'pageNo',
    langKey: 'returnColums.pageNo',
    width: '80',
  },
  {
    key: 1,
    label: `退还单号`,
    visible: true,
    prop: 'returnNo',
    langKey: 'returnColums.returnNo',
    isclick: true,
    width: '150',
  },
  {
    key: 2,
    label: `退还日期`,
    visible: true,
    prop: 'returnDate',
    langKey: 'returnColums.returnDate',
    width: '150',
  },
  {
    key: 3,
    label: `申请人`,
    visible: true,
    prop: 'createUser',
    langKey: 'returnColums.createUser',
    width: '150',
  },
  {
    key: 4,
    label: `申请日期`,
    visible: true,
    prop: 'createDate',
    langKey: 'returnColums.createDate',
    width: '150',
  },
  {
    key: 5,
    label: `退还备注`,
    visible: true,
    prop: 'returnRemark',
    langKey: 'returnColums.returnRemark',
  },
])

//维修
const repairColums = ref([
  {
    key: -1,
    label: `序号`,
    visible: true,
    prop: 'pageNo',
    langKey: 'repairColums.pageNo',
    width: '80',
  },
  {
    key: 0,
    label: `单据状态`,
    visible: true,
    prop: 'enableFlag',
    langKey: 'repairColums.enableFlag',
    width: '100',
  },
  {
    key: 1,
    label: `维修单号`,
    visible: true,
    prop: 'repairNo',
    langKey: 'repairColums.repairNo',
    isclick: true,
    width: '150',
  },
  {
    key: 2,
    label: `维修状态`,
    visible: true,
    prop: 'RepairState',
    langKey: 'repairColums.RepairState',
    isclick: true,
    width: '150',
  },
  {
    key: 3,
    label: `维修日期`,
    visible: true,
    prop: 'repairDate',
    langKey: 'repairColums.repairDate',
    width: '150',
  },
  {
    key: 4,
    label: `维修备注`,
    visible: true,
    prop: 'repairRemark',
    langKey: 'repairColums.repairRemark',
  },
  {
    key: 5,
    label: `报修人`,
    visible: true,
    prop: 'applicantUserName',
    langKey: 'repairColums.applicantUserName',
    width: '150',
  },
  {
    key: 6,
    label: `申请日期`,
    visible: true,
    prop: 'createDate',
    langKey: 'repairColums.createDate',
    width: '150',
  },
])

//处置
const disposeColums = ref([
  {
    key: -1,
    label: `序号`,
    visible: true,
    prop: 'pageNo',
    langKey: 'disposeColums.pageNo',
    width: '80',
  },
  {
    key: 0,
    label: `单据状态`,
    visible: true,
    prop: 'enableFlag',
    langKey: 'disposeColums.enableFlag',
    width: '100',
  },
  {
    key: 1,
    label: `处置单号`,
    visible: true,
    prop: 'disposeNo',
    langKey: 'disposeColums.disposeNo',
    isclick: true,
    width: '150',
  },
  {
    key: 3,
    label: `处置类型`,
    visible: true,
    prop: 'disposeType',
    langKey: 'disposeColums.disposeType',
    width: '120',
  },
  {
    key: 4,
    label: `处置金额`,
    visible: true,
    prop: 'disposeCost',
    langKey: 'disposeColums.disposeCost',
    width: '100',
  },
  {
    key: 5,
    label: `处置日期`,
    visible: true,
    prop: 'disposeDate',
    langKey: 'disposeColums.disposeDate',
    width: '150',
  },
  {
    key: 6,
    label: `处置备注`,
    visible: true,
    prop: 'disposeRemark',
    langKey: 'disposeColums.disposeRemark',
  },
  {
    key: 7,
    label: `申请人`,
    visible: false,
    prop: 'createUser',
    langKey: 'disposeColums.createUser',
    width: '150',
  },
  {
    key: 8,
    label: `申请日期`,
    visible: false,
    prop: 'createDate',
    langKey: 'disposeColums.createDate',
    width: '150',
  },
])

//调拨
const allotColums = ref([
  {
    key: -1,
    label: `序号`,
    visible: true,
    prop: 'pageNo',
    langKey: 'allotColums.pageNo',
    width: '80',
  },
  {
    key: 0,
    label: `单据状态`,
    visible: true,
    prop: 'enableFlag',
    langKey: 'allotColums.enableFlag',
    width: '100',
  },
  {
    key: 1,
    label: `调拨单号`,
    visible: true,
    prop: 'allotNo',
    langKey: 'allotColums.allotNo',
    isclick: true,
    width: '150',
  },
  {
    key: 3,
    label: `调出所属组织`,
    visible: true,
    prop: 'calloutOrganizationName',
    langKey: 'allotColums.calloutOrganizationName',
    width: '200',
  },
  {
    key: 4,
    label: `调入所属组织`,
    visible: true,
    prop: 'callinOrganizationName',
    langKey: 'allotColums.callinOrganizationName',
    width: '200',
  },
  {
    key: 5,
    label: `调入使用组织`,
    visible: true,
    prop: 'useOrganizationName',
    langKey: 'allotColums.useOrganizationName',
    width: '200',
  },
  {
    key: 6,
    label: `调拨后使用人`,
    visible: true,
    prop: 'useUserName',
    langKey: 'allotColums.useUserName',
    width: '150',
  },
  {
    key: 7,
    label: `调拨日期`,
    visible: true,
    prop: 'allotDate',
    langKey: 'allotColums.allotDate',
    width: '150',
  },
  {
    key: 8,
    label: `申请日期`,
    visible: false,
    prop: 'createDate',
    langKey: 'allotColums.createDate',
    width: '150',
  },
  {
    key: 9,
    label: `调拨备注`,
    visible: true,
    prop: 'allotRemark',
    langKey: 'allotColums.allotRemark',
  },
])

//单据审批,我的申请
const approvalColums = ref([
  {
    key: -1,
    label: `序号`,
    visible: true,
    prop: 'pageNo',
    langKey: 'approvalColums.pageNo',
    width: '80',
  },
  {
    key: 0,
    label: `单据状态`,
    visible: true,
    prop: 'flowStatus',
    langKey: 'approvalColums.flowStatus',
    width: '100',
  },
  {
    key: 1,
    label: `单号`,
    visible: true,
    prop: 'flowNo',
    langKey: 'approvalColums.flowNo',
    isclick: true,
    width: '150',
  },
  {
    key: 2,
    label: `单据类型`,
    visible: true,
    prop: 'flowTypeName',
    langKey: 'approvalColums.flowTypeName',
    width: '150',
  },
  {
    key: 3,
    label: `标题`,
    visible: true,
    prop: 'title',
    langKey: 'approvalColums.title',
  },
  {
    key: 4,
    label: `描述`,
    visible: true,
    prop: 'descriptions',
    langKey: 'approvalColums.descriptions',
  },
  {
    key: 5,
    label: `申请人`,
    visible: true,
    prop: 'addUserName',
    langKey: 'approvalColums.addUserName',
    isclick: true,
    width: '150',
  },
  {
    key: 6,
    label: `申请日期`,
    visible: true,
    prop: 'addDatetime',
    langKey: 'approvalColums.addDatetime',
    width: '150',
  },
])

//待我审批
const approvalByMySelfColums = ref([
  {
    key: -1,
    label: `序号`,
    visible: true,
    prop: 'pageNo',
    langKey: 'approvalByMySelfColums.pageNo',
    width: '80',
  },
  {
    key: 0,
    label: `审批状态`,
    visible: true,
    prop: 'auditStatus',
    langKey: 'approvalByMySelfColums.auditStatus',
    width: '100',
  },
  {
    key: 1,
    label: `单号`,
    visible: true,
    prop: 'flowNo',
    langKey: 'approvalByMySelfColums.flowNo',
    isclick: true,
    width: '150',
  },
  {
    key: 2,
    label: `单据类型`,
    visible: true,
    prop: 'flowTypeName',
    langKey: 'approvalByMySelfColums.flowTypeName',
    width: '150',
  },
  {
    key: 3,
    label: `标题`,
    visible: true,
    prop: 'title',
    langKey: 'approvalByMySelfColums.title',
  },
  {
    key: 4,
    label: `描述`,
    visible: true,
    prop: 'descriptions',
    langKey: 'approvalByMySelfColums.descriptions',
  },
  {
    key: 5,
    label: `申请人`,
    visible: true,
    prop: 'addUserName',
    langKey: 'approvalByMySelfColums.addUserName',
    isclick: true,
    width: '100',
  },
  {
    key: 6,
    label: `申请日期`,
    visible: true,
    prop: 'addDatetime',
    langKey: 'approvalByMySelfColums.addDatetime',
    width: '150',
  },
])

export {
  assetsColums,
  receiveColums,
  returnColums,
  repairColums,
  disposeColums,
  allotColums,
  approvalColums,
  approvalByMySelfColums,
}
